namespace IniTechCaash.Domain.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Update3 : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.SourceDocuments", "Id", "dbo.JournalEntryLines");
            DropIndex("dbo.SourceDocuments", new[] { "Id" });
            DropTable("dbo.SourceDocuments");
        }
        
        public override void Down()
        {
            CreateTable(
                "dbo.SourceDocuments",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        Name = c.String(maxLength: 128),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateIndex("dbo.SourceDocuments", "Id");
            AddForeignKey("dbo.SourceDocuments", "Id", "dbo.JournalEntryLines", "Id");
        }
    }
}
